package com.llxz.blog.article.service;

import com.llxz.blog.article.dto.CollectParam;
import com.llxz.blog.article.entity.Article;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import java.util.List;

@Service(value = "CollectService")
@Component
public interface CollectService {
    /**
     * 收藏文章
     * @param collectParam
     */
    void collectArticle(CollectParam collectParam);

    /**
     * 获取用户收藏
     * @param phone
     * @return
     */
    List<Article> getOnesCollection(String phone);

    /**
     *
     * @param collectParam
     */
    void cancelCollection(CollectParam collectParam);

    /**
     *
     * @param collectParam
     * @return
     */
    boolean ifCollect(CollectParam collectParam);
}

